<?php

namespace app\admin\validate;

class Group extends \think\Validate
{
    protected $rule = [
        'name|角色名称'          =>  'require|unique:group'
    ];

    public function sceneEdit(){
        return $this->remove([
            'name'      =>  'unique'
        ]);
    }
}
